<?php

if (isset($_POST['submit_invest']))
{
	$bValid = true;

	$email = "contact@boostpost.com,gregmartin72@hotmail.com";
	$senderemail = @$_POST['senderemail'];
	$subject = stripslashes(@$_POST['subject']);
	$message = stripslashes(@$_POST['message']);
	if($bValid)
	{
		$headers = 'From: '.$senderemail."\r\n".'Reply-To: webmaster@boostpost.com' . "\r\n".'X-Mailer: PHP/'.phpversion();
		@mail($email, "$subject", "$message", $headers);
	}
}

header("Location:index.php");
?>